package main.java.ERMDE.controllers.factories.mock;

import java.util.List;

import main.java.ERMDE.controllers.IRelationshipEntityController;
import main.java.ERMDE.controllers.factories.IRelationshipEntityControllerFactory;
import main.java.ERMDE.models.Interface;

import ERMDE.controllers.tests.mocks.MockRelationshipEntityController;


public class MockRelationshipEntityControllerFactory implements
		IRelationshipEntityControllerFactory {

	private MockRelationshipEntityController mockRelationshipEntityController;
	private List<Interface> relationshipEntities;
	
	public void setRelationshipEntityController(
			IRelationshipEntityController mockRelationshipEntityController2) {
		this.mockRelationshipEntityController = (MockRelationshipEntityController) mockRelationshipEntityController2;
		
	}

	@Override
	public IRelationshipEntityController create() {
		mockRelationshipEntityController.setRelationshipEntities(this.relationshipEntities);
		return mockRelationshipEntityController;
	}
	
	public void setRelationshipEntities(List<Interface> relationshipEntities) {
		this.relationshipEntities = relationshipEntities;
	}

}
